package org.jianfa.homework.user.model;

public class HttpResponse {

    public Integer status;

    public String message;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class Builder {

        private HttpResponse httpResponse;

        public Builder() {
            httpResponse = new HttpResponse();
        }

        public Builder status(Integer status) {
            this.httpResponse.setStatus(status);
            return this;
        }

        public Builder message(String message) {
            this.httpResponse.setMessage(message);
            return this;
        }

        public HttpResponse build() {
            return this.httpResponse;
        }
    }
}
